from PIL import Image, ImageDraw
from sys import argv
from json import load

img = Image.open(argv[1])
with open(argv[2]) as f:
    boxes = load(f)["boxes"]
x, y = img.size  # coordinate conversion from result
drawer = ImageDraw.Draw(img)
for box in boxes:
    print(box[1:5])
    drawer.rectangle((int(box[1]), y-int(box[2]), int(box[3]), y-int(box[4])), outline="red")
img.show()